package uutalk.netcloud.talk.base.mqtt;

/**
 * ClassName: Constant
 * Desc:
 * Created by zhiw on 2017/3/23.
 */

public class MqttConstant {

    public static final String HOST = "120.24.170.220";
    public static final String PORT = "1883";



    public class ExtraConstant {

        public static final String EXTRA_CONNECTION = "connection";

        public static final String EXTRA_SUBSCRIPTION = "subscription";

        public static final String EXTRA_PUBLICATION = "publication";

        public static final String EXTRA_TOPIC = "topic";


    }

    public class MQTTStatusConstant {

        public static final int CONNECT_SUCCESS = 100;

        public static final int CONNECT_FAIL = 101;

        public static final int SUBSCRIBE_SUCCESS = 102;

        public static final int SUBSCRIBE_FAIL = 103;

        public static final int UNSUBSCRIBE_SUCCESS = 104;

        public static final int UNSUBSCRIBE_FAIL = 105;

        public static final int PUBLISH_SUCCESS = 106;

        public static final int PUBLISH_FAIL = 107;

        public static final int MESSAGE_ARRIVED = 108;

        public static final int CONNECTION_LOST = 109;

        public static final int DELIVERY_COMPLETE = 110;

        //重新连接成功
        public static final int RECONNNECTION_SUCCESS = 111;
    }

    public class MQTTUserContextConstant{

        public static final String CONNECT_CONTEXT = "Connect";
        public static final String SUBSCRIBE_CONTEXT = "Subscribe";
        public static final String PUBLISH_CONTEXT = "Publish";
        public static final String UNSUBSCRIBE_CONTEXT = "UNSubscribe";

    }




}
